package com.saihai.jiankang.hrmcitytwo.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.saihai.common.annotation.Log;
import com.saihai.common.core.controller.BaseController;
import com.saihai.common.core.domain.AjaxResult;
import com.saihai.common.enums.BusinessType;
import com.saihai.jiankang.hrmcitytwo.domain.Hrmcitytwo;
import com.saihai.jiankang.hrmcitytwo.service.IHrmcitytwoService;
import com.saihai.common.utils.poi.ExcelUtil;
import com.saihai.common.core.page.TableDataInfo;

/**
 * 区县Controller
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@RestController
@RequestMapping("/hrmcitytwo/hrmcitytwo")
public class HrmcitytwoController extends BaseController
{
    @Autowired
    private IHrmcitytwoService hrmcitytwoService;

    /**
     * 查询区县列表
     */
    @GetMapping("/list")
    public TableDataInfo list(Hrmcitytwo hrmcitytwo)
    {
        List<Hrmcitytwo> list = hrmcitytwoService.selectHrmcitytwoList(hrmcitytwo);
        return getDataTable(list);
    }

    /**
     * 获取区县详细信息
     */
    @PreAuthorize("@ss.hasPermi('hrmcitytwo:hrmcitytwo:query')")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(hrmcitytwoService.selectHrmcitytwoById(id));
    }

}
